package com.lagou.consumer;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class StatisConsumer {

    @KafkaListener(topics = {"click", "job_collect", "cv_send", "cv_upload"})
    public void onMessage(ConsumerRecord<Integer, String> record) {
        System.out.println("操作日志： " + record.topic() + "\t"
                + "\t" + record.value());


    }
}
